<?php

/**
 * 支付宝移动端
 */

namespace app\member\api;

class AlipayMobileApi {

    /**
     * 异步回调
     */
    public function index() {
        header('Access-Control-Allow-Origin: *');
        header('Content-type: text/plain');
        $post = request('post');
        if (empty($post)) {
            exit('error');
        }
        $config = target('member/PayConfig')->getConfig('alipay_mobile');
        if ($post['seller_id'] <> $config['partner'] || $post['seller_email'] !== $config['email']) {
            exit('error');
        }
        $trade_no = $post['trade_no'];
        $out_trade_no = $post['out_trade_no'];








    }

}